using Sponsorship.Domain;

namespace Sponsorship.ReadModel
{
    /// <summary>
    /// Defines an interface for classes handling <see cref="IEvent"/> instances (for building the read model of the application).
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IEventHandler<in T> where T : IEvent
    {
        void Handle(T domainEvent);
    }
}